<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="dom.css">
    <script src="dom.js"></script>
</head>

<body>
   <ul class="tab-titles">

    <li class="tab-title">标题1</li>
    <li class="tab-title">标题2</li>
    <li class="tab-title">标题3</li>
    <li class="tab-title">标题4</li>
   </ul>
   <ul class="tab-contents">

    <li class="tab-content">内容1</li>
    <li class="tab-content">内容2</li>
    <li class="tab-content">内容3</li>
    <li class="tab-content">内容4</li>
   </ul>
   

</body>
</html>